export enum WsMsgType {
  TASK_RESULT_UPDATE = "task_result_update",
  TASK_UPDATE = "task_update",
  PING = "ping",
}

export type WsMsg<T extends WsMsgType, R> = {
  type: T;
  payload: R;
};
